<template>
  <container>
    <currentPage></currentPage>
  </container>

</template>

<script>
import Circle from "./components/Circle";
import {ref, computed,onMounted} from 'vue'
import Rect from "./components/Rect";

export default {
  name: 'App',
  components: {
  },
  setup() {
    const currentPageName = ref("circle")

    const currentPage = computed(() => {
      if (currentPageName.value === "circle") {
        return Circle
      }else{
        return Rect;
      }
    })

    onMounted(()=>{
      // setTimeout(()=>{
      //   currentPageName.value="rect";
      // },2000)
    })

    return {
      currentPage,
    }

  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
